﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LibrarySync2.Common.Extensions
{
    public static class EventExtensionMethods
    {
        public static void Raise<T>(this EventHandler<T> handler, object sender, T args)
            where T : EventArgs
        {
            EventHandler<T> evt = handler;
            if (evt != null) evt(sender, args);
        }
    }
}
